import { $get, $post, $put, $del } from 'utils/request'
import { ref, reactive, unref } from 'vue'
import { ElMessage } from 'element-plus'
import { ERR_OK } from '@/config/statusCode'
import { deepClone } from 'utils/index'
import { useI18n } from 'vue-i18n'
// dir 获取目录内文件集合
export let getFileDirApi = async (dir) => {
  let url = `$zfil/v1/${tenantId}/file/bucket/${dir}`
  let data = await $get(url, {})
  return data
}
  
export default function() {
  const { t } = useI18n() // 中英文
 
  return {
    getFileDirApi, 
  }
}
